import axios from 'axios'

const request9191 = axios.create({
    baseURL: 'http://localhost:9191',
    timeout: 5000,
    withCredentials: true // 允许携带凭证
})
// //请求拦截器
// request9191.interceptors.request.use((config) => {
// //如果存在token，请求携带token
//     if(window.sessionStorage.getItem('token')){
//         console.log('token'+window.sessionStorage.getItem('token'))
//         config.headers['token'] = window.sessionStorage.getItem('token');
//     }
//     return config ;
// }, (error) => {
//     Message.error({ message: error });
// })
export default request9191